

public class DuckCorridor extends Command{

	/**
	 * @uml.property  name="aCorridor"
	 * @uml.associationEnd  multiplicity="(1 1)" inverse="duckCorridor:ACorridor"
	 */
	private ACorridorAndRoom aCorridorAndRoom = null;

	/**
	 * Getter of the property <tt>aCorridor</tt>
	 * @return  Returns the aCorridor.
	 * @uml.property  name="aCorridor"
	 */
	public ACorridorAndRoom getACorridor() {
		return aCorridorAndRoom;
	}

	/**
	 * Setter of the property <tt>aCorridor</tt>
	 * @param aCorridorAndRoom  The aCorridor to set.
	 * @uml.property  name="aCorridor"
	 */
	public void setACorridor(ACorridorAndRoom aCorridorAndRoom) {
		this.aCorridorAndRoom = aCorridorAndRoom;
	}
	public DuckCorridor(ACorridorAndRoom aCorridorAndRoom){
		this.aCorridorAndRoom=aCorridorAndRoom;		
	}
	public void execute(){
		aCorridorAndRoom.duck();
	}
}
